import request from '@/utils/request'

// 查询运行记录列表
export function listSensorRecord(query) {
  return request({
    url: '/app/sensorRecord/list',
    method: 'get',
    params: query
  })
}

// 查询运行记录详细
export function getSensorRecord(recordId) {
  return request({
    url: '/app/sensorRecord/' + recordId,
    method: 'get'
  })
}

// 新增运行记录
export function addSensorRecord(data) {
  return request({
    url: '/app/sensorRecord',
    method: 'post',
    data: data
  })
}

// 修改运行记录
export function updateSensorRecord(data) {
  return request({
    url: '/app/sensorRecord',
    method: 'put',
    data: data
  })
}

// 删除运行记录
export function delSensorRecord(recordId) {
  return request({
    url: '/app/sensorRecord/' + recordId,
    method: 'delete'
  })
}
